package com.bjpowernode.crm.workbench.service.impl;

import com.bjpowernode.crm.workbench.domain.ClueActivityRelation;
import com.bjpowernode.crm.workbench.mapper.ClueActivityRelationMapper;
import com.bjpowernode.crm.workbench.service.ClueActivityRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 郭俊才
 * 2021/8/28
 */
@Service
public class ClueActivityRelationServiceImpl implements ClueActivityRelationService {
    @Autowired
    private ClueActivityRelationMapper clueActivityRelationMapper;
    @Override
    public int saveByList(List<ClueActivityRelation> list) {
        return clueActivityRelationMapper.insertByList(list);
    }

    @Override
    public List<ClueActivityRelation> queryByClueId(String clueId) {
        return clueActivityRelationMapper.selectClueActivityRelationByClueId(clueId);
    }

    @Override
    public int removeClueActivityRelationById(String clueId, String activityId) {
        return clueActivityRelationMapper.deleteClueActivityRelationById(clueId, activityId);
    }

}
